package com.wryyyyy.mapper;

import com.wryyyyy.entity.UserLabel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wryyyyy
 * @since 2023-11-12
 */
public interface UserLabelMapper extends BaseMapper<UserLabel> {
    @Select("select label_id from tb_user_label where user_id = #{userId}")
    List<String> selectLabelsByUser(@Param("userId") String userId);
}
